package com.mesnac.comm.config;

import java.util.HashMap;
import java.util.Map;
/**
 * 
* @ClassName: ActionConfig
* @Description: 权限验证
* @author chilei chil07@mesnac.com
* @date Nov 20, 2012 2:54:45 PM
*
 */
public class ActionConfig {
	//财务人员对凭证的编辑权限
	public static final Integer bookingOperPri =  111;
	//普通人员对账户的查询权限
	public static final Integer allAccountInquire = 112;
	//个人账户的查询权限
	public static final Integer personAccountInquire = 113;
	
	public static Map<String,Integer> priActionMap = new HashMap<String,Integer>();
	static {
		//将所有的action和要求的权限对应起来 
		
		
		
	}
	//根据action的名字获得需要的权限
	public static Integer getActionPri(String actionname){
		if(priActionMap.get(actionname)!=null)
			return priActionMap.get(actionname);
		else
			return -1;
	}
}
